#!/usr/bin/python3
# -*- coding: utf-8 -*-
#======================================#
# @Author   : duanqizhong
# @time     : 2020-12-26 20:28
# @file     : my_test.py
# @Software : PyCharm
#======================================#
import time
from src.core.stock import Stock


def run():
    s=Stock()
    rs=s.all_stock(day="2020-12-25")
    print('query_all_stock respond error_code:' + rs.error_code)
    print('query_all_stock respond  error_msg:' + rs.error_msg)
    while rs.error_code == "0" and rs.next():
        print(rs.get_row_data())

        time.sleep(0.2)



if __name__=="__main__":
    run()